/* 页面整体容器 */
.page-container {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 24px; 
  border-radius: 12px;
  background-color: #fff;
  min-height: calc(100vh - 100px); /* 适配页面高度，可按需调整 */
}

/* 卡片头部区域 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header span {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  padding-left: 12px;
}

.header span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #409eff;
  border-radius: 2px;
}

/* 头部右侧额外操作区 */
.extra {
  margin-right: 10px;
}

.extra .el-button {
  background-color: #78b3ee; /* 蓝色 */
  color: white;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 100;
}


/* 表格样式优化 */
.search-bar {
  --el-table-header-text-color: #555;
  --el-table-row-hover-bg-color: #f9fafc;
  width: 100%;
  margin-bottom: 20px;
}

.search-bar thead th {
  background-color: #f1f3f5;
  font-weight: 500;
  text-align: left; /* 确保表头文字左对齐 */
  padding: 12px 8px;
  border-bottom: 2px solid #e6e8eb;
}

.search-bar tbody td {
  vertical-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f3f5;
}

/* 表格操作列按钮 */
.search-bar .el-button {
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid #dcdfe6;
}

.search-bar .el-button:hover {
  opacity: 0.9;
  transform: scale(1.05);
  border-color: #409eff;
}

/* 标签样式优化（状态列） */
.el-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}

/* 分页组件 */
.el-pagination {
  --el-pagination-font-size: 14px;
  --el-pagination-color: #666;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.el-pagination button {
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  margin: 0 2px;
}

.el-pagination button:hover {
  background-color: #eef1f4;
}

/* 抽屉表单区域 */
.el-drawer {
  --el-drawer-header-text-color: #333;
  --el-drawer-background-color: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.05);
}

.el-drawer__header {
  border-bottom: 1px solid #f1f3f5;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.el-drawer__title {
  font-size: 18px;
  font-weight: 600;
}

.el-form {
  max-width: 550px;
  margin: 0 auto;
  justify-content: flex-start !important;
  margin-left: 0;
}

.el-form-item {
  margin-bottom: 20px;
  
}

.el-form-item__label {
  color: #666;
  font-weight: 500;
  
   text-align: left; 

}

/* 全局样式 */
.custom-select .el-select-dropdown {
  width: var(--select-width, 200px); /* 使用 CSS 变量 */
}

.el-input,
.el-select,
.el-date-picker {
  width: 100%;
  border-radius: 6px;
  --el-input-hover-border-color: #66b1ff;
  --el-input-focus-border-color: #409eff;
}

.el-input__wrapper,
.el-select .el-input__wrapper,
.el-date-picker .el-input__wrapper {
  border: 1px solid #dcdfe6;
  transition: all 0.3s ease;
  
}

.el-input__wrapper:hover,
.el-select .el-input__wrapper:hover,
.el-date-picker .el-input__wrapper:hover {
  border-color: #66b1ff;
}

/* 表单提交按钮 */
.el-form-item .el-button {
  margin-right: 14px;
  padding: 8px 24px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  border: none;
}

.el-form-item .el-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(64, 158, 255, 0.25);
}

.el-form-item .el-button--primary {
  background-color: #409eff;
  color: #fff;
}

.el-form-item .el-button--primary:hover {
  background-color: #66b1ff;
}

.el-button > .el-icon + span {
  margin-left: 4px;
}